<?php
require_once 'Walk.php';
/**
 * Walk的单元测试类
 * User: ford
 * Date: 15-7-9
 * Time: 上午9:23
 */
class WalkTest extends PHPUnit_Framework_TestCase {
	/**
	 * @var Walk
	 */
	protected $object;

	/**
	 * 初始化，比如打开网络连接
	 * 该方法在测试前调用
	 */
	protected function setUp() {
		$this->object = new Walk();
	}

	/**
	 * 拆除，比如关闭网络连接
	 * 此方法在测试执行后调用
	 */
	protected function tearDown() {

	}

	public function testTimeToWalkDefault() {
		echo "testTimeToWalkTheDefault";
		$this->assertTrue($this->object->timeToWalkTheDog());
	}

	public function testTimeToWalkTheDogHaveNoDogShouldReturnFalse() {
		echo "testTimeToWalkTheDogDefault";
		$this->object->ownADog = false;
		$this->assertTrue(!$this->object->timeToWalkTheDog());
	}
}